home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / bash / bash_110 / mint / bash110s.zoo / bash-1.10 / flags.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-04  |  977 b   |  34 lines

  1. /* flags.h -- a list of all the flags that the shell knows about.  You add
  2.    a flag to this program by adding the name here, and in flags.c. */
  3.  
  4. #if !defined (_FLAGS_H)
  5. #define _FLAGS_H
  6.  
  7. /* Welcome to the world of Un*x, where everything is slightly
  8.    backwards. */
  9. #define FLAG_ON '-'
  10. #define FLAG_OFF '+'
  11.  
  12. #define FLAG_ERROR -1
  13.  
  14. /* The thing that we build the array of flags out of. */
  15. struct flags_alist {
  16.   char *name;
  17.   int *value;
  18. };
  19.  
  20. extern struct flags_alist shell_flags[];
  21.  
  22. extern int
  23.   mark_modified_vars, exit_immediately_on_error, disallow_filename_globbing,
  24.   locate_commands_in_functions, place_keywords_in_env, read_but_dont_execute,
  25.   just_one_command, unbound_vars_is_error, echo_input_at_read,
  26.   echo_command_at_execute, lexical_scoping, no_invisible_vars, noclobber,
  27.   hashing_disabled, forced_interactive, history_expansion;
  28.  
  29. extern int *find_flag ();
  30. extern int change_flag (), change_flag_char ();
  31. extern char *which_set_flags ();
  32.  
  33. #endif /* _FLAGS_H */
  34.